<?php $this->load->view('admin/public/head.html', array(
'css' => array('/assets/admin/css/admin/common.css','/assets/library/plugins/bootstrap-slider/slider.css'
))); ?>
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper systemSetting" ng-controller="admin-system-app-controller">
    <!-- Content Header (Page header) -->
    <section class="content-header">
        <h1>
            手机客户端
            <small>设置客户端常用信息</small>
        </h1>
        <ol class="breadcrumb">
            <li><a href="#"><i class="fa fa-dashboard"></i> 首页</a></li>
            <li class="active">系统设置</li>
            <li>手机客户端</li>
        </ol>
    </section>

    <!-- Main content -->
    <section class="content">
        <div class="row">
            <div class="col-md-12">
                <div class="box box-info">
                    <div class="box-header with-border">
                        <h3 class="box-title">客户端基础设置</h3>
                    </div>

                    <!-- form start -->
                    <form class="form-horizontal">
                        <div class="box-body">
                            <div class="form-group">
                                <label for="appName" class="col-sm-2 control-label">客户端名称</label>
                                <div class="col-sm-4">
                                    <input type="text" class="form-control" id="appName" ng-model="general.appName" placeholder="APP名称">
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-2 control-label">网站Logo</label>
                                <div class="col-sm-6">
                                    <div class="row">
                                        <div class="col-sm-12" ng-if="showLogoUrl">
                                            <div class="thumb-logo-box">
                                                <img ng-src="{{ showLogoUrl }}" class="thumb-logo" alt="">
                                            </div>
                                        </div>
                                        <div class="col-sm-12">
                                            <button id="logoBtn" class="btn btn-info pull-left" style="margin-top: 5px;">选择图片</button>
                                            <div class="thumb-logo-text pull-left">
                                                JPEG/PNG/GIF 224*52
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>

                            <div class="form-group">
                                <label for="slideNum" class="col-sm-2 control-label">幻灯片数量</label>
                                <div class="col-sm-2">
                                    <input type="number" class="form-control" id="slideNum" ng-model="general.slideNum" placeholder="幻灯片数量">
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-2 control-label">播放类型</label>
                                <div class="col-sm-6">
                                    <div class="checkbox">
                                        <label style="padding-left: 0;" ng-click="setSlideType('auto')">
                                            <input type="radio" name="slideType" value="auto" ng-model="general.slideType"> 自动
                                        </label>
                                        <label style="padding-left: 30px;" ng-click="setSlideType('hand')">
                                            <input type="radio" name="slideType" value="hand" ng-model="general.slideType"> 手动
                                        </label>
                                    </div>
                                </div>
                            </div>

                            <div class="form-group">
                                <label for="slideTimer" class="col-sm-2 control-label">幻灯片播放间隔</label>
                                <div class="col-sm-4">
                                    <p style="display: block;height: 7px; margin: 0;"></p>
                                    <input type="text"
                                           id="slideTimer"
                                           value=""
                                           ng-model="data.slideTimer"
                                           class="slider form-control"
                                           data-slider-min="0"
                                           data-slider-max="5"
                                           data-slider-step="1"
                                           data-slider-value="3"
                                           data-slider-orientation="horizontal"
                                           data-slider-selection="before"
                                           data-slider-tooltip="show"
                                           data-slider-id="aqua">
                                </div>
                            </div>

                        </div>
                        <!-- /.box-body -->
                        <div class="box-footer">
                            <button type="submit" class="btn btn-default">取消</button>
                            <button type="submit" class="btn btn-info pull-right" ng-click="saveSetting('general')">保存</button>
                        </div>
                        <!-- /.box-footer -->
                    </form>
                </div>
            </div>
        </div>

        <div class="row">
            <div class="col-md-12">
                <div class="box box-info">
                    <div class="box-header with-border">
                        <h3 class="box-title">广告图</h3>
                    </div>

                    <form class="form-horizontal">
                        <div class="box-body">
                            <div class="form-group">
                                <label class="col-sm-2 control-label">广告图</label>
                                <div class="col-sm-8">
                                    <div class="row">
                                        <div class="col-sm-12" ng-if="showAdvUrl">
                                            <div class="thumb-adv-box">
                                                <img ng-src="{{ showAdvUrl }}" class="thumb-adv" alt="">
                                            </div>
                                        </div>
                                        <div class="col-sm-12">
                                            <button id="advBtn" class="btn btn-info pull-left" style="margin-top: 5px;">选择图片</button>
                                            <div class="thumb-logo-text pull-left">
                                                JPEG/PNG/GIF 640 * 1136
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </form>
                    <div class="box-footer">
                        <button type="submit" class="btn btn-default">取消</button>
                        <button type="submit" class="btn btn-info pull-right" ng-click="saveSetting('adv')">保存</button>
                    </div>
                </div>
            </div>
        </div>

        <!--下载设置-->
        <div class="row">
            <div class="col-md-12">
                <div class="box box-info">
                    <div class="box-header with-border">
                        <h3 class="box-title">下载设置</h3>
                    </div>

                    <form class="form-horizontal">
                        <div class="box-body">
                            <div class="form-group">
                                <label for="iosVersion" class="col-sm-2 control-label">IOS 版本</label>
                                <div class="col-sm-3">
                                    <input type="text" class="form-control" id="iosVersion" ng-model="download.ios.version" placeholder="IOS 客户端版本号">
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="iosDownload" class="col-sm-2 control-label">IOS 下载地址</label>
                                <div class="col-sm-8">
                                    <input type="text" class="form-control" id="iosDownload" ng-model="download.ios.address" placeholder="IOS 客户端下载地址">
                                    <p class="help-block">大于客户端系统版本号,将提示 IOS 客户端升级</p>
                                </div>
                            </div>

                            <div class="form-group">
                                <label for="androidVersion" class="col-sm-2 control-label">Android 版本</label>
                                <div class="col-sm-3">
                                    <input type="text" class="form-control" id="androidVersion" ng-model="download.android.version" placeholder="Android 客户端版本号">
                                </div>
                            </div>

                            <div class="form-group">
                                <label for="androidDownload" class="col-sm-2 control-label">Android 下载地址</label>
                                <div class="col-sm-8">
                                    <input type="text" class="form-control" id="androidDownload" ng-model="download.android.address" placeholder="Android 客户端下载地址">
                                    <p class="help-block">大于客户端系统版本号,将提示 Android 客户端升级</p>
                                </div>
                            </div>
                        </div>
                    </form>
                    <div class="box-footer">
                        <button type="submit" class="btn btn-default">取消</button>
                        <button type="submit" class="btn btn-info pull-right" ng-click="saveSetting('download')">保存</button>
                    </div>
                </div>
            </div>
        </div>

        <div class="row">
            <div class="col-md-12">
                <div class="box box-info">
                    <div class="box-header with-border">
                        <h3 class="box-title">App 描述</h3>
                    </div>

                    <form class="form-horizontal">
                        <div class="box-body">
                            <div class="form-group">
                                <label class="col-sm-2 control-label">&nbsp;</label>
                                <div class="col-sm-8">
                                    <script id="appDescription" name="appDescription" type="text/plain"></script>
                                </div>
                            </div>
                        </div>
                    </form>
                    <div class="box-footer">
                        <button type="submit" class="btn btn-default">取消</button>
                        <button type="submit" class="btn btn-info pull-right" ng-click="saveSetting('description')">保存</button>
                    </div>
                </div>
            </div>
        </div>

        <div class="row">
            <div class="col-md-12">
                <div class="box box-info">
                    <div class="box-header with-border">
                        <h3 class="box-title">隐私策略</h3>
                    </div>

                    <form class="form-horizontal">
                        <div class="box-body">
                            <div class="form-group">
                                <label class="col-sm-2 control-label">&nbsp;</label>
                                <div class="col-sm-8">
                                    <script id="appPrivicy" name="content" type="text/plain"></script>
                                </div>
                            </div>
                        </div>
                    </form>
                    <div class="box-footer">
                        <button type="submit" class="btn btn-default">取消</button>
                        <button type="submit" class="btn btn-info pull-right" ng-click="saveSetting('privicy')">保存</button>
                    </div>
                </div>
            </div>
        </div>
    </section>
    <!-- /.content -->
</div>

<!-- /.content-wrapper -->
<?php $this->load->view('admin/public/foot.html', array('js' => array(
'http://cdn.staticfile.org/webuploader/0.1.0/webuploader.flashonly.min.js',
'/assets/library/plugins/bootstrap-slider/bootstrap-slider.js',
'/assets/library/ueditor/ueditor.config.js',
'/assets/library/ueditor/ueditor.all.min.js',
'/assets/admin/js/system/app.js'
))); ?>

